package com.competition.commgr.mapper;

import java.util.List;
import com.competition.commgr.domain.Competitionsessions;
import org.apache.ibatis.annotations.Param;

/**
 * 赛项届次Mapper接口
 * 
 * @author ruoyi
 * @date 2025-01-29
 */
public interface CompetitionsessionsMapper 
{
    /**
     * 查询赛项届次
     * 
     * @param sessionId 赛项届次主键
     * @return 赛项届次
     */
    public Competitionsessions selectCompetitionsessionsBySessionId(Long sessionId);

    /**
     * 查询赛项届次列表
     * 
     * @param competitionsessions 赛项届次
     * @return 赛项届次集合
     */
    public List<Competitionsessions> selectCompetitionsessionsList(Competitionsessions competitionsessions);

    /**
     * 新增赛项届次
     * 
     * @param competitionsessions 赛项届次
     * @return 结果
     */
    public int insertCompetitionsessions(Competitionsessions competitionsessions);

    /**
     * 修改赛项届次
     * 
     * @param competitionsessions 赛项届次
     * @return 结果
     */
    public int updateCompetitionsessions(Competitionsessions competitionsessions);

    /**
     * 删除赛项届次
     * 
     * @param sessionId 赛项届次主键
     * @return 结果
     */
    public int deleteCompetitionsessionsBySessionId(Long sessionId);

    /**
     * 批量删除赛项届次
     * 
     * @param sessionIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCompetitionsessionsBySessionIds(Long[] sessionIds);

    Competitionsessions selectOneCompetitionsessions(Competitionsessions competitionsessions);

    List<Competitionsessions> getSessionSuggestions(@Param("keyword")  String keyword);
}
